home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / HyperTalk / Stack Starter ß.976 / Stack Starter fl.976 / card_3177.txt < prev    next >
Encoding:
Text File  |  1988-08-03  |  10.5 KB  |  523 lines

  1. -- card: 3177 from stack: in.976
  2. -- bmap block id: 20031
  3. -- flags: 0000
  4. -- background id: 2295
  5. -- name: animated icons 2
  6. ----- HyperTalk script -----
  7. on closeCard
  8.   show card btn id 10
  9.   show card btn id 11
  10.   set icon of btn "BulletHole" to 0
  11.   pass closeCard
  12. end closeCard
  13.  
  14. on idle
  15.   send idle to card btn "Candle"
  16.   if visible of field "Mouse Loc2" is true then
  17.     put the mouseLoc into field "Mouse Loc2"
  18.   end if
  19.   send idle to stack
  20.   exit idle
  21. end idle
  22.  
  23.  
  24. -- part 1 (button)
  25. -- low flags: 00
  26. -- high flags: A004
  27. -- rect: left=34 top=92 right=142 bottom=73
  28. -- title width / last selected line: 0
  29. -- icon id / first selected line: 32221 / 32221
  30. -- text alignment: 1
  31. -- font id: 0
  32. -- text size: 12
  33. -- style flags: 8192
  34. -- line height: 16
  35. -- part name: Hammer
  36. ----- HyperTalk script -----
  37. on mouseUp
  38.   set icon of me to 29603
  39.   set icon of me to 3105
  40.   set icon of me to 14951
  41.   set icon of me to 32221
  42.   play "Metal Falling"
  43. end mouseUp
  44.  
  45.  
  46.  
  47. -- part 2 (button)
  48. -- low flags: 00
  49. -- high flags: A004
  50. -- rect: left=34 top=144 right=194 bottom=73
  51. -- title width / last selected line: 0
  52. -- icon id / first selected line: 14013 / 14013
  53. -- text alignment: 1
  54. -- font id: 0
  55. -- text size: 12
  56. -- style flags: 8192
  57. -- line height: 16
  58. -- part name: Key
  59. ----- HyperTalk script -----
  60. on mouseUp
  61.   set icon of me to 8191
  62.   play "click"
  63.   set icon of me to 4375
  64.   play "click"
  65.   set icon of me to 16437
  66.   play "click"
  67.   set icon of me to 29777
  68.   play "click"
  69.   set icon of me to 6603
  70.   play "click"
  71.   play "car"
  72.   set icon of me to 14013
  73.   send mouseEnter to btn "Cucu"
  74. end mouseUp
  75.  
  76.  
  77.  
  78. -- part 3 (button)
  79. -- low flags: 00
  80. -- high flags: A004
  81. -- rect: left=34 top=196 right=246 bottom=73
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 6686 / 6686
  84. -- text alignment: 1
  85. -- font id: 0
  86. -- text size: 12
  87. -- style flags: 8192
  88. -- line height: 16
  89. -- part name: Wrench
  90. ----- HyperTalk script -----
  91. on mouseUp
  92.   set icon of me to 12056
  93.   set icon of me to 21591
  94.   play "SpinCylinder" fe
  95.   set icon of me to 21591
  96.   set icon of me to 23480
  97.   set icon of me to 6686
  98. end mouseUp
  99.  
  100.  
  101. -- part 4 (button)
  102. -- low flags: 00
  103. -- high flags: A004
  104. -- rect: left=34 top=248 right=298 bottom=73
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 23959 / 23959
  107. -- text alignment: 1
  108. -- font id: 0
  109. -- text size: 12
  110. -- style flags: 8192
  111. -- line height: 16
  112. -- part name: ScwDvr
  113. ----- HyperTalk script -----
  114. on mouseUp
  115.   set icon of me to 7139
  116.   play "SpinCylinder" fe
  117.   set icon of me to 15775
  118.   play "SpinCylinder" fe
  119.   set icon of me to 24004
  120.   play "SpinCylinder" fe
  121.   set icon of me to 23959
  122.   play "click"
  123. end mouseUp
  124.  
  125.  
  126.  
  127. -- part 5 (button)
  128. -- low flags: 00
  129. -- high flags: 8004
  130. -- rect: left=301 top=92 right=142 bottom=340
  131. -- title width / last selected line: 0
  132. -- icon id / first selected line: 4315 / 4315
  133. -- text alignment: 1
  134. -- font id: 0
  135. -- text size: 12
  136. -- style flags: 0
  137. -- line height: 16
  138. -- part name: Effects
  139. ----- HyperTalk script -----
  140. on mouseUp
  141.   repeat with i = 4312 to 4315
  142.     set icon of me to i
  143.   end repeat
  144.   flash 1
  145. end mouseUp
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152. -- part 6 (button)
  153. -- low flags: 00
  154. -- high flags: 8004
  155. -- rect: left=301 top=144 right=194 bottom=340
  156. -- title width / last selected line: 0
  157. -- icon id / first selected line: 4232 / 4232
  158. -- text alignment: 1
  159. -- font id: 0
  160. -- text size: 12
  161. -- style flags: 0
  162. -- line height: 16
  163. -- part name: Candle
  164. ----- HyperTalk script -----
  165. on mouseUp
  166.   repeat with i = 4236 to 4243
  167.     set icon of me to i
  168.   end repeat
  169.   set icon of me to 4240
  170.   wait 15
  171.   visual dissolve slowly to black
  172.   go this card
  173. end mouseUp
  174.  
  175. on idle
  176.   put 4229 into temp
  177.   put temp + the random of 6 into this
  178.   set icon of me to this
  179.   exit idle
  180. end idle
  181.  
  182.  
  183. -- part 7 (button)
  184. -- low flags: 00
  185. -- high flags: 8004
  186. -- rect: left=301 top=196 right=246 bottom=340
  187. -- title width / last selected line: 0
  188. -- icon id / first selected line: 4253 / 4253
  189. -- text alignment: 1
  190. -- font id: 0
  191. -- text size: 12
  192. -- style flags: 0
  193. -- line height: 16
  194. -- part name: Faucet
  195. ----- HyperTalk script -----
  196. on mouseUp
  197.   -- "Drip" snd created by Ken Briot
  198.   repeat with i = 4244 to 4251
  199.     set icon of me to i
  200.     if i = 4248 then play "Drip"
  201.   end repeat
  202.   repeat 4
  203.     repeat with i = 4246 to 4249
  204.       set icon of me to i
  205.       if i = 4248 then play "Drip"
  206.     end repeat
  207.     set icon of me to 4250
  208.     set icon of me to 4251
  209.   end repeat
  210.   set icon of me to 4246
  211.   set icon of me to 4245
  212.   repeat 3
  213.     set icon of me to 4252
  214.     set icon of me to 4253
  215.   end repeat
  216. end mouseUp
  217.  
  218.  
  219. -- part 8 (button)
  220. -- low flags: 00
  221. -- high flags: 8004
  222. -- rect: left=301 top=248 right=298 bottom=340
  223. -- title width / last selected line: 0
  224. -- icon id / first selected line: 4214 / 4214
  225. -- text alignment: 1
  226. -- font id: 0
  227. -- text size: 12
  228. -- style flags: 0
  229. -- line height: 16
  230. -- part name: Bomb!
  231. ----- HyperTalk script -----
  232. on mouseUp
  233.   put 3 into temp
  234.   repeat with i = 4210 to 4214
  235.     play temp
  236.     set icon of me to i
  237.     if temp = 0 then Flash 2
  238.     subtract 1 from temp
  239.   end repeat
  240.   send mouseEnter to btn "Cucu"
  241. end mouseUp
  242.  
  243.  
  244.  
  245.  
  246. -- part 9 (button)
  247. -- low flags: 00
  248. -- high flags: 8004
  249. -- rect: left=84 top=181 right=195 bottom=272
  250. -- title width / last selected line: 0
  251. -- icon id / first selected line: 0 / 0
  252. -- text alignment: 1
  253. -- font id: 0
  254. -- text size: 12
  255. -- style flags: 0
  256. -- line height: 16
  257. -- part name: Click Here to Hide Artwork
  258. ----- HyperTalk script -----
  259. on mouseUp
  260.   show card btn "Click Here to Show Artwork"
  261.   show card btn "Show Artwork"
  262. end mouseUp
  263.  
  264.  
  265.  
  266. -- part 10 (button)
  267. -- low flags: 00
  268. -- high flags: 8001
  269. -- rect: left=78 top=93 right=283 bottom=287
  270. -- title width / last selected line: 0
  271. -- icon id / first selected line: 0 / 0
  272. -- text alignment: 1
  273. -- font id: 0
  274. -- text size: 12
  275. -- style flags: 0
  276. -- line height: 16
  277. -- part name: Click Here to Show Artwork
  278. ----- HyperTalk script -----
  279. on mouseUp
  280.   set visible of me to not visible of me
  281.   if visible of me is false then hide card btn id 11
  282. end mouseUp
  283.  
  284.  
  285.  
  286.  
  287. -- part 11 (button)
  288. -- low flags: 00
  289. -- high flags: 0001
  290. -- rect: left=342 top=93 right=283 bottom=493
  291. -- title width / last selected line: 0
  292. -- icon id / first selected line: 0 / 0
  293. -- text alignment: 1
  294. -- font id: 0
  295. -- text size: 12
  296. -- style flags: 0
  297. -- line height: 16
  298. -- part name: Show Artwork
  299. ----- HyperTalk script -----
  300. on mouseUp
  301.   set visible of me to not visible of me
  302. end mouseUp
  303.  
  304.  
  305.  
  306. -- part 12 (button)
  307. -- low flags: 00
  308. -- high flags: A004
  309. -- rect: left=98 top=283 right=301 bottom=193
  310. -- title width / last selected line: 0
  311. -- icon id / first selected line: 0 / 0
  312. -- text alignment: 1
  313. -- font id: 0
  314. -- text size: 12
  315. -- style flags: 0
  316. -- line height: 16
  317. -- part name: Play All
  318. ----- HyperTalk script -----
  319. on mouseUp
  320.   playAll
  321. end mouseUp
  322.  
  323.  
  324.  
  325. -- part 14 (button)
  326. -- low flags: 00
  327. -- high flags: 0000
  328. -- rect: left=234 top=106 right=118 bottom=246
  329. -- title width / last selected line: 0
  330. -- icon id / first selected line: 0 / 0
  331. -- text alignment: 1
  332. -- font id: 0
  333. -- text size: 12
  334. -- style flags: 0
  335. -- line height: 16
  336. -- part name: BulletHole
  337. ----- HyperTalk script -----
  338. on mouseUp
  339.   set icon of me to 0
  340. end mouseUp
  341.  
  342.  
  343.  
  344. -- part 15 (button)
  345. -- low flags: 00
  346. -- high flags: C004
  347. -- rect: left=309 top=311 right=327 bottom=352
  348. -- title width / last selected line: 0
  349. -- icon id / first selected line: 0 / 0
  350. -- text alignment: 1
  351. -- font id: 0
  352. -- text size: 12
  353. -- style flags: 0
  354. -- line height: 16
  355. -- part name: Icons
  356. ----- HyperTalk script -----
  357. on mouseUp
  358.   set hilite of me to true
  359.   doMenu short name of me
  360. end mouseUp
  361.  
  362.  
  363. -- part 13 (button)
  364. -- low flags: 00
  365. -- high flags: 0000
  366. -- rect: left=180 top=192 right=226 bottom=214
  367. -- title width / last selected line: 0
  368. -- icon id / first selected line: 0 / 0
  369. -- text alignment: 1
  370. -- font id: 0
  371. -- text size: 12
  372. -- style flags: 0
  373. -- line height: 16
  374. -- part name: Cucu
  375. ----- HyperTalk script -----
  376. on mouseEnter
  377.   global Squack
  378.   put 1 into Squack
  379.   cycle
  380. end mouseEnter
  381.  
  382. on cycle
  383.   global FastMac, Squack
  384.   repeat until Squack is empty
  385.     set icon of btn "BulletHole" to 0
  386.     set cursor to 87
  387.     put loc of btn "Cucu" into locat1
  388.     put "0,0" into locat2
  389.     put random(512) into item 1 of locat2
  390.     put random(342) into item 2 of locat2
  391.     show btn "Cucu" at locat2
  392.  
  393.     repeat with i = 6113 to 6116 -- doors open
  394.       set icon of me to i
  395.     end repeat
  396.  
  397.     repeat random(2)
  398.       if the mouseClick is true then
  399.         action
  400.         exit repeat
  401.       end if
  402.       play "Cucu"
  403.       if FastMac <> empty then wait until the sound is "done"
  404.       set icon of me to 6115
  405.       if the mouseClick is true then
  406.         action
  407.         exit repeat
  408.       end if
  409.       set icon of me to 6116
  410.     end repeat
  411.     if the mouseClick is true then
  412.       action
  413.       exit repeat
  414.     end if
  415.  
  416.     if Squack is empty then exit repeat
  417.     play "Cucu"
  418.     if FastMac <> empty then wait until the sound is "done"
  419.     repeat with i = 6116 down to 6113 --doors close
  420.       set icon of me to i
  421.     end repeat
  422.     set icon of me to 0
  423.   end repeat
  424.   set icon of btn "BulletHole" to 0
  425. end cycle
  426.  
  427. on action
  428.   global Bullet, Squack
  429.   put rect of me into locat3
  430.   put the mouseLoc into Bullet
  431.   subtract 20 from item 1 of Bullet
  432.   subtract 20 from item 2 of Bullet
  433.   if item 1 of Bullet < item 1 of locat3 then
  434.     bulletHole
  435.     exit action
  436.   end if
  437.   if item 1 of Bullet > item 3 of locat3 then
  438.     bulletHole
  439.     exit action
  440.   end if
  441.   if item 2 of Bullet < item 2 of locat3 then
  442.     bulletHole
  443.     exit action
  444.   end if
  445.   if item 2 of Bullet > item 4 of locat3 then
  446.     bulletHole
  447.     exit action
  448.   end if
  449.   shot
  450. end action
  451.  
  452. on shot
  453.   global Squack
  454.   play "GunShot"
  455.   repeat with i = 6126 to 6129
  456.     set icon of me to i
  457.   end repeat
  458.   set icon of me to 0
  459.   put empty into Squack
  460. end shot
  461.  
  462. on bulletHole
  463.   global Bullet, FastMac
  464.   show btn "BulletHole" at Bullet
  465.   set icon of btn "BulletHole" to 6125
  466.   play "GunShot"
  467.   if FastMac <> empty then wait until the sound is "done"
  468. end bulletHole
  469.  
  470.  
  471. -- part contents for background part 56
  472. ----- text -----
  473. animated icons 2
  474.  
  475. -- part contents for background part 78
  476. ----- text -----
  477. Prev Card: animated icons 1
  478.  
  479. -- part contents for background part 79
  480. ----- text -----
  481. Next Card: animated icons 3
  482.  
  483. -- part contents for background part 95
  484. ----- text -----
  485. Button Breeder
  486. Button Font Changer
  487. Buttons
  488.  
  489. -- part contents for background part 96
  490. ----- text -----
  491. Change Button Font
  492. Controls
  493. Cover
  494. Crash
  495. Credits
  496. Cursors
  497.  
  498. -- part contents for background part 97
  499. ----- text -----
  500. Date & Time
  501. DeProtect Stack
  502. Dedications
  503. Descriptions
  504. Digitized Sounds
  505. Disk Space Available
  506. Don't Click Here
  507. Don't Panic
  508.  
  509. -- part contents for background part 67
  510. ----- text -----
  511. Mouse Location:
  512.  
  513. -- part contents for background part 68
  514. ----- text -----
  515. 250,135
  516.  
  517. -- part contents for background part 82
  518. ----- text -----
  519. Free Space:
  520.  
  521. -- part contents for background part 83
  522. ----- text -----
  523. 78.38 K